Skip to main content

revStartXMLNode

Type

message

Summary

Sent to the current card when the revXMLCreateTreeFromFile function encounters an opening tag while parsing an XML file.

Syntax

revStartXMLNode <pNodeName>, <pNodeAttributes>

Description

Handle the revStartXMLNode message if you want to build your own subset of an XML document.

The revXMLCreateTree or revXMLCreateTreeFromFile functions take XML data and parse it. When you call either of these functions, you can specify whether or not to send messages during the parsing operation.

If you have specified that you want the function to send messages, the revStartXMLNode message is sent when the function encounters the start of a node. If you have specified that you don't want messages sent, no revStartXMLNode messages are sent.

Parameters

NameTypeDescription

pNodeName

string

A string containing the name of the XML element currently being parsed.

pNodeAttributes

string

A string containing the attributes of the XML element currently being parsed, one attribute per line. Each attribute name is separated from its value by a comma.

Examples

on revStartXMLNode theAttributes -- create a new card for this node
if "publisher",the currPublisher of this stack \
is among the lines of theAttributes then
create card
put theAttributes into field "Attributes"
end if
end revStartXMLNode

control structure: function

function: revXMLCreateTreeFromFile

glossary: current card, tag, message, function, XML, XML document

message: revXMLStartTree

command: call, revXMLDeleteNode

Compatibility and Support

Introduced

LiveCode 2.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?